package com.herewego;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;

public class Splash extends Activity {

	protected void  hiloCambiarVista() {
        Thread t = new Thread() {
            public void run() {
                try {
                    Thread.sleep(2500);
                    Intent intent = new Intent();
                    intent.setClass(Splash.this, Home.class);
                    startActivity(intent);
                    finish();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        };
        t.start();
        
    }
	
    
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
    }
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        hiloCambiarVista();
    }
}